{extend name="public/base"}

{block name="title"}修改算法{/block}

{block name="main"}
<!--添加用户UI-->
<div class="layui-row">
    <div class="layui-col-md4 layui-col-md-offset4">
        <form action="{:url('/alg/'.$obj.id)}" method="post" class="layui-form layui-form-pane">
            <input type="hidden" name="_method" value="put">
            <div class="layui-form-item" >
                <label for="name" class="layui-form-label">算法名称</label>
                <div class="layui-input-block">
                    <input type="text"  required  lay-verify="required"  value="{$obj.name}" id="name" name="name" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item" >
                <label for="alg" class="layui-form-label">算法公式</label>
                <div class="layui-input-block">
                    <input type="text"  required  lay-verify="required"  value="{$obj.alg}" id="alg" name="alg" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <a href="{:url('/alg')}" class="layui-btn layui-btn-normal  layui-btn-sm"><i class="layui-icon layui-icon-left"></i>返回列表</a>
            </div>
            <div class="layui-form-item">
                <input type="hidden" value="{:token()}" name="__token__">
                <button class="layui-btn layui-btn-success layui-btn-fluid layui-btn-lg">提交修改</button>
            </div>
        </form>
    </div>
</div>
<script>
</script>
{/block}